<template>
  <div>
    <Header/>
    <router-view></router-view>
    <Footer v-show="!$route.meta.footerIsHidden"/>
  </div>
</template>

<script>
import { mapActions} from "vuex";
import Header from '@comp/Header'
import Footer from '@comp/Footer'
export default {
  name:'App',
  components:{
    Header,
    Footer
  },
  mounted() {
     //发送获取三级列表数据
    this.getCategoryList()
  },
  methods: {
    //封装获取三级列表,避免组件复用导致的频繁请求
    ...mapActions("home", ["getCategoryList"])
  },
  
}
</script>

<style>

</style>